import { Component } from '@angular/core';


@Component({
    selector: 'page-dividers',
    templateUrl: 'dividers.html'
})
export class DividersPage {
    tabBarElement: any;
    constructor() {
        // If we navigated to this page, we will have an item available as a nav param
        if (document.querySelector('.tabbar')) {
            this.tabBarElement = document.querySelector('.tabbar.show-tabbar');
        }

    }

    ionViewWillEnter() {
        if (this.tabBarElement) {
            this.tabBarElement.style.display = 'none';
        }
    }

    ionViewWillLeave() {
        if (this.tabBarElement) {
            this.tabBarElement.style.display = 'flex';
        }
    }
 }